package com.base.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author gxd
 * @since 2025/6/6
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "sys_user_role", autoResultMap = true)
@ApiModel(description = "用户角色中间表 实体类")
public class SysUserRole {

    @ApiModelProperty(value = "主键Id")
    @TableId(type = IdType.AUTO)
    private Long Id;

    @ApiModelProperty(value = "用户Id")
    private Long userId;

    @ApiModelProperty(value = "角色Id")
    private Long roleId;
}
